package cn.com.lyb.job.service;

import cn.com.lyb.job.entity.JobInstanceDO;
import cn.com.lyb.job.entity.vo.JobInstanceVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 任务实例表 服务类
 * </p>
 *
 * @author lvyuanbo
 * @since 2024-07-11
 */
public interface IJobInstanceService extends IService<JobInstanceDO> {
    /**
     * selectPage
     * @param status
     * @param start
     * @param length
     * @return
     */
    List<JobInstanceVO> selectPage(String status, Integer start, Integer length, Long jobId, Long workflowInstanceId);

    /**
     * 检测当前任务是否可以运行
     * @param id
     * @return
     */
    JobInstanceDO checkRunByJobId(Long id);
}
